package cr5xdll;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class Hello {

	String path = "";
	int s = 0;

	public String ResourceUri() {
		boolean b = false;
		Thread t = new Thread();

		return path;
	}

	public static void main(String[] args) {
//		File f=new File("d:/pos/TrRpt/2010-10-22/TrRpt_37001184_20101022175341.hex");
//		if(f.exists()){
//			System.out.println("文件已存在!");
//			if(f.length()>0){
//				System.out.println("文件大于1KB");
//			}else{
//				if(f.delete()){
//					System.out.println("已删除0KB的文件。");
//				}
//			}
//		}else{
//			System.out.println("文件不存在，程序退出！");
//		}
		int i=0;
		int j=0;
		File f=new File("d:/pos/TrRpt/2010-10-22/TrRpt_37001184_20101022182854.hex");
		
		while(f.exists()){
			j++;
			System.out.println(i);
			
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		System.out.println("结束咯");
	}
}
